html, body {
  width: 100%;
  height: 100%;
}

@header-height: 45px;
.header {  
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: @header-height;
  border-bottom: 1px solid #ddd;
  z-index: 77777;
  background: #fff url(imgs/logo-all.png) no-repeat 20px 4px;
  padding: 0 25px 0 145px;
  line-height:  @header-height;

  .logo {
    color: #2FC8DC;
    font: normal normal bold 16px/40px 'microsoft yahei';
    margin: 0 25px 0 0;
  }

  .btn-nav {
    margin: 0 15px 0 0;
    padding: 5px 12px;
    color: #333;
    text-align: center;
    font: normal normal normal 12px/30px 'microsoft yahei';
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    background: #fff;
    cursor: pointer;

    &:hover {
      box-shadow: 0 0 5px rgba(0,0,0,.5);
      background: #f5f5f5;
      text-decoration: none;
    }
    &:active {
      background: #eee;
    }
  }

  .detail {
    color: #999;    
    font: normal normal normal 12px/22px 'microsoft yahei';
  }
}

#map {  
  position: relative;
  top:  @header-height;
  width: 100%;
	height: ~"calc(100% - 45px)";
	min-height: 500px;
	min-width: 500px;
  border: none;
}

.popover-hint {
  position: fixed;
  top: 60px;
  display: none;
  margin: 0 auto;
  min-width: 250px;
  text-align: center;
  background-color: #ff8c26;
  border-radius: 0;
  z-index: 80010;

  > .content {
    font-size: 14px;
    font-family: "microsoft yahei";
    color: #fff;
    padding: 8px 10px;
  }
}


.map-popup {
  position: relative;
  min-width: 305px; 
  min-height: 200px;

  .title {
    width: 100%;
    line-height: 20px;
    height: 25px;
    border-bottom: 1px solid #ddd;

    span.name {
      display: inline-block;
      float: left;
      font-size: 14px;
      font-weight: bold;
      width: 220px;
      max-width: 220px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow:hidden;
      color: #333;
    }

    a.popup-close {
      display: inline-block;
      float: right;
      width: 16px; height: 16px;
      background: url(imgs/cancel.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/cancel-hover.png) no-repeat 0 0;
      }

      &:active {
        background: url(imgs/cancel-msedown.png) no-repeat 0 0;
      }
    }

    a.popup-delete {
      display: inline-block;
      float: right;
      width: 18px; height: 18px;
      background: url(imgs/delete.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/delete-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/delete-msedown.png) no-repeat 0 0;
      }
    }

    a.popup-edit {
      display: inline-block;
      float: right;
      width: 18px; height: 18px;
      background: url(imgs/edit.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/edit-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/edit-msedown.png) no-repeat 0 0;
      }
    }

    a.popup-sure {
      display: inline-block;
      float: right;
      width: 16px; height: 16px;
      background: url(imgs/sure.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/sure-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/sure-msedown.png) no-repeat 0 0;
      }
    }
  }
  
  .content {
    /*width: 100%;*/
    padding: 10px;

    .pictures {
      position: relative;
      width: 100%;
      height: 60px;
      margin-bottom: 5px;

      .caption {
        position: absolute;
        bottom: 0; left: 0;
        width: 215px;
        background-color: rgba(180,180,180,.7);

        span.first {
          display: inline-block;
          width: 60px;
          text-align: center;
          float: left;
        }

        span.second {
          display: inline-block;
          width: 155px;
          text-align: center;
          float: left;
        }
      }
    }

    .branch-icon { 
      width: 60px;
      height: 60px;
      line-height: 60px;
      float: left;
      text-align: center;

      > img {    
        cursor: pointer;
      }
    }

    .photo {    
      width: 155px;
      height: 60px;
      text-align: center;
      float: left;

      img {
        max-width: 155px;
        max-height: 60px;
        cursor: pointer;
      }
    }

    .attr {
      /*width: 100%;*/
      display: block;
      line-height: 26px;

      .label {
        display: inline-block;
        float: left;
        width: 60px;
        line-height: 26px;
        font-size: 12px;
        font-family: 'microsoft yahei';
        color: #888;
        font-weight: normal;
        text-align: left;
        padding: 0;
      }

      .text {
        width: 220px;
        display: inline-block;
        max-width: 220px;
        font-size: 12px;
        font-family: 'microsoft yahei';
        color: #333;
        word-wrap:break-word;
        line-height: 18px;
        margin-top: 4px;
      }

      a.choose-cars {
        color: #3D6DCC;
        cursor: pointer;
      }

      .hint {
        color: red;
        display: block;
        height: 16px;
      }

      .input-file {
        width: 210px;
        display: inline-block;
        border: 1px solid #ccc;
        outline: none;
        font-size: 12px;
        font-family: 'microsoft yahei', arial;
        padding: 1px 5px;
        line-height: 12px;
      }

      a.a-save-as-branch {
        margin: 5px 0 0 100px;
      }
    }

    .hide {
      display: none;
    }

    .input {
      border: 1px solid #ccc;
      outline: none;
      font-size: 12px;
      font-family: 'microsoft yahei', arial;
      padding: 1px 5px;
      line-height: 12px;
      width: 210px;
      border-radius: 0;
      margin: 0;
    }

    .input-disable {
      border: 1px solid #ccc;
      outline: none;
      font-size: 12px;
      font-family: 'microsoft yahei', arial;
      padding: 1px 5px;
      line-height: 12px;
      width: 80px;
      cursor: pointer;
      border-radius: 0;
      margin: 0;
    }

    .red {
      color: red;
    }

    .green {
      color: green;
    }

    span.detail {
      max-width: 290px;
      display: block; 
      font-size: 12px;
      font-family: 'microsoft yahei';
      text-indent: 26px;
      line-height: 26px;
    }
  }

}

.mask-loading {
  position: fixed;
  left: 0; top: 0;
  width: 100%; 
  height: 100%;
  display: none;
  min-height: 320px; min-width: 560px;
  background-color: rgba(30,30,30,.5);
  z-index: 80002;
  overflow: auto;
  .box {
    position: relative;
    top: ~"calc(50% - 30px)";
    width: 60px;
    height: 60px;
    margin: 0 auto;
    .loader {
      width: 80px;
      height: 80px;
      background: transparent url(imgs/loading.png) no-repeat 0 0;
      -webkit-animation: loader 0.7s infinite linear;
              animation: loader 0.7s infinite linear;
    }
  }
}

@-webkit-keyframes loader {
  0% {
    -webkit-transform: rotateZ(0deg);
            transform: rotateZ(0deg);
  }
  100% {
    -webkit-transform: rotateZ(360deg);
            transform: rotateZ(360deg);
  }
}
@keyframes loader {
  0% {
    -webkit-transform: rotateZ(0deg);
            transform: rotateZ(0deg);
  }
  100% {
    -webkit-transform: rotateZ(360deg);
            transform: rotateZ(360deg);
  }
}